package org.example;

class FinalChallenge implements CodeChallenge {
    private String description;

    public FinalChallenge(String desc) {
        this.description = desc;
    }

    @Override
    public String getDescription() {
        return "【最终挑战】\n" + description + "\n实现要求:\n" +
                "1. 注入自复制代码\n" +
                "2. 绕过所有安全检测\n" +
                "3. 触发主神核心崩溃";
    }

    @Override
    public String getHint() {
        return "结合反射和字节码操作";
    }

    @Override
    public boolean validateSolution(String code) {
        return code.contains("ClassLoader") &&
                code.contains("defineClass") &&
                code.contains("invoke(");
    }
}
